package com.myw.mail.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 t_order
 * 
 * @author myw
 * @date 2025-07-10
 */
@Data
@TableName("t_order")
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 订单号（唯一） */
    @Excel(name = "订单号", readConverterExp = "唯=一")
    private String orderNo;

    /** 用户ID */
    private Long userId;

    /** 订单总金额 */
    @Excel(name = "订单总金额")
    private BigDecimal orderTotalAmount;

    /** 收货地址ID */
    @Excel(name = "收货地址ID")
    private Long addressId;

    /** 状态（0待支付/1待发货/2待收货/3已完成/4已取消） */
    @Excel(name = "状态", readConverterExp = "0=待支付/1待发货/2待收货/3已完成/4已取消")
    private String orderStatus;

    /** 支付状态 */
    @Excel(name = "支付状态")
    private String orderPaymentStatus;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderPaymentTime;


}
